<html>
<head>
<title>GiCoCu</title>
<link rel="stylesheet" type="text/css" href="../../avisynth.css">
<!--
Automatically generated, don't change:
$Id: gicocu.htm,v 1.1 2005/08/21 20:49:12 wilbertd Exp $ 
-->
</head>
<body>
<h1>GiCoCu</h1>
<h2>Abstract</h2>
<b>author:</b>      E-Male
<br><b>version:</b>          062005<br>
<b>download:</b>    <a href="http://www.avisynth.org/warpenterprises/">http://www.avisynth.org/warpenterprises/</a>
<br><b>category:</b> Misc Plugins
<br><b>requirements:</b>
<ul>
  <li>RGB Colorspace</li>
</ul>
<p><b>license:</b>  open source</p>

<hr size=2 width="100%" align=center>

<!-- #EndTemplate -->
<h2>Description</h2>
<p>      Reproduces photoshop's handling amp-files and gimp's handling of color curve files.</p>
<h3>Syntax</h3>
<p>   GiCoCu (<var>clip, string filename, bool &quot;alpha&quot;, bool
&quot;photoshop&quot;</var>)</p>
<h3>Parameters</h3>
<p>- optional alpha channel support:<br>
if <var>alpha</var> = true and colorspace is rgb32 the alpha-channel of the video is processed as well<br>
default: false</p>
<p>- cur/amp files support (format of photoshop and bugsbunny's vdub plug-in)<br>
if <var>photoshop</var> = true the plug-in expects a photoshop amp-file instead of a gimp color curve file<br>
default: false</p>
<h3>Example</h3>
<p>We created the following GIMP curve file in GIMP.</p>
<pre># GIMP Curves File
2 27 -1 -1 -1 -1 54 51 -1 56 -1 -1 -1 108 106 115 -1 180 -1 185 157 189 -1 140 -1 198 -1 208 -1 199 -1 -1 255 255
0 0 -1 -1 -1 0 -1 0 61 0 84 76 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255
0 0 -1 -1 -1 -1 -1 50 66 0 87 79 -1 180 -1 203 133 134 -1 133 -1 139 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255
-1 0 -1 0 -1 0 -1 0 64 0 -1 -1 -1 70 -1 126 126 128 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255
0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255</pre>
<p>Save it to a text-file: Layers tab -&gt; Colors -&gt; Curves -&gt; Save -&gt;
gimp.cur. Create the following script:</p>
<pre>ImageSource(&quot;D:\Captures\obelisk.jpg&quot;)
GiCoCu(&quot;D:\Captures\gimp.cur&quot;)</pre>
<table border="1" width="50%">
  <tr>
    <td width="25%" align="center"><img border="0" src="../pictures/externalfilters/obelisk.jpg" width="480" height="318"></td>
    <td width="25%" align="center"><img border="0" src="../pictures/externalfilters/obelisk2.jpg" width="480" height="318"></td>
  </tr>
  <tr>
    <td width="25%" align="center">source</td>
    <td width="25%" align="center">applying the GIMP curve</td>
  </tr>
</table>
<p><kbd>$Date: 2005/08/21 20:49:12 $</kbd>
</p>
</body>
</html>
